<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('users', UserController::class);//用户
    $router->resource('goods', GoodsController::class);//商品
    $router->resource('university', UniversityController::class);//大学
    $router->resource('campus', CampusController::class);//校区
    $router->resource('webConfigs', WebConfigController::class);//网站配置
    $router->resource('balanceRecords', BalanceRecordController::class);//余额记录
    $router->resource('dealRecords', DealRecordController::class);//第三方交易记录
    $router->resource('depot', DepotController::class);//货架
    $router->resource('orders', OrderController::class);//订单
    $router->resource('banner', BannerController::class);//首页轮播
    $router->resource('cart', CartController::class);//购物车
    $router->resource('orderGoods', OrderGoodsController::class);//订单商品
    $router->resource('smsCode', SmsCodeController::class);//短信验证码
    $router->resource('devBookInfo', DevBookInfoController::class);//采集好的数据
    $router->resource('feedback', FeedbackController::class);//用户反馈
    $router->resource('notice', NoticeController::class);//消息通知
    $router->resource('faq', FaqController::class);//客服中心
    $router->resource('demand', DemandController::class);//需要处理的isbn
    $router->resource('withdraw', WithdrawController::class);//提现记录
    $router->resource('platformIncome', PlatformIncomeController::class);//平台收益






    $router->resource('templateMessage', TemplateMessageController::class);//微信模板消息
    $router->get('sendMessage/{id}','TemplateMessageController@sendMessage');//发送模板消息




    $router->resource('wxCustomMenu', WxCustomMenuController::class);//微信自定义菜单
    $router->get('currentMenu','WxCustomMenuController@currentMenu');//查看当前自定义菜单
    $router->get('updateMenu','WxCustomMenuController@updateMenu');//更新当前自定义菜单



});
